<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var s="abc";
        var s2='def';

        var s3=new String("aabb");
        console.log(s,s2,s3);

        var blnA=true;
        var blnB=false;

        var intA;
        console.log(intA);

        var arrA=null;
        // 1.定义对象的一种方式
        var objA=new Object();

        // 2.定义对象的另外一种方式
        var objB={};
        objB.name="张三";
        objB.say=function(){
            console.log("今天天气很好！")
        }
        console.log(objB.name);
        objB.say();
        console.log('---------开始---------')
        // 输出各种变量的类型
        console.log(typeof s,typeof blnA,typeof intA,typeof arrA,typeof objA)
        console.log('---------结束---------')
    </script>
</body>
</html>